def fun(num1):
    num1.append('4')
    print(num1)

num=[1,2,3]
fun(num)
print(num)
